<template>
	<view class="assess-children-view">
		<image class="head" :src="gender===1?'../../../static/children-head-male.png':'../../../static/children-head-female.png'"></image>
		<view class="children-info-view">
			<view class="children-info-view-row">
				<text style="flex: 1.2;">姓名:{{name}}</text>
				<text class="info-item">月龄:{{month}}月</text>
				<text class="info-item">性别:{{gender===1?'男':'女'}}</text>
			</view>
			<view class="children-info-view-row">
				<text style="flex: 1.2;">身高:{{height}}CM</text>
				<text class="info-item">体重:{{weight}}KG</text>
				<text class="info-item"></text>
			</view>
			<view></view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'AssessChildrenView',
		props: {
			gender: {
				type: Number,
				default () {
					return 0;
				}
			},
			name: {
				type: String,
				default () {
					return '';
				}
			},
			month: {
				type: Number,
				default () {
					return 0;
				}
			},
			height: {
				type: String,
				default () {
					return '';
				}
			},
			weight: {
				type: String,
				default () {
					return '';
				}
			},
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.assess-children-view {
		margin-top: 20rpx;
		background-color: #FFFFFF;
		padding-top: 20rpx;
		padding-left: 40rpx;
		padding-bottom: 20rpx;
		padding-right: 40rpx;
		display: flex;
		flex-direction: row;
		font-size: 24rpx;
		color: #666666;
		align-items: center;
	}

	.head {
		width: 120rpx;
		height: 120rpx;
		margin-right: 40rpx;
		border-color: $app-main-color;
		border-width: 1px;
		border-radius: 50%;
		border-style: solid;
	}

	.children-info-view {
		display: flex;
		flex-direction: column;
		flex-grow: 1;
	}

	.children-info-view-row {
		display: flex;
		flex-direction: row;
		margin-top: 10rpx;
	}

	.info-item {
		flex: 1;
	}
</style>
